package com.wy.panda.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wy.panda.constant.UserTypeEnum;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 用户
 * 
 * @author wangyuan
 * @date 2021-03-27 13:27:02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@TableName("t_sys_user")
public class SysUserEntity extends BaseEntity {
	
	private static final long serialVersionUID = 47330707424613880L;

    
	/**
	 * 主键
	 */
    @TableId(type = IdType.AUTO)
    private Long id;
    
	/**
	 * 用户名
	 */
    @TableField(value = "username")
    private String username;
    
	/**
	 * 密码
	 */
    @TableField(value = "password")
    private String password;
    
	/**
	 * 用户类型：0，系统管理员
	 */
    @TableField(value = "user_type")
    private UserTypeEnum userType;
    
	/**
	 * 账号是否锁定：0否，1是
	 */
    @TableField(value = "is_locked")
    private Integer isLocked;
    
	/**
	 * 账号是否过期：0否，1是
	 */
    @TableField(value = "is_expired")
    private Integer isExpired;
    
	/**
	 * 账号状态：0禁用，1启用
	 */
    @TableField(value = "is_enabled")
    private Integer isEnabled;
    
	/**
	 * 备注
	 */
    @TableField(value = "remark")
    private String remark;

}
